package com.feifan.service;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author Donald
 * @create 2019-04-25 21:06
 */
@Getter
@Setter
@ToString
public class JsonResult {
    private Integer status = 200;
    private String message = "OK";
    private Object result;

    public JsonResult(Integer status, String message, Object result) {
        this.status = status;
        this.message = message;
        this.result = result;
    }

    public JsonResult(Object result) {
        this.result = result;
    }

    public JsonResult(String message, Object result) {
        this.message = message;
        this.result = result;
    }

    public JsonResult() {}
}
